package com.kadron.enumeration;

import org.jboss.seam.core.Interpolator;

public enum KLang {

	EN(0),SR(1),ES(2);
	
	private int ordinal;
	
	private KLang(int ordinal) {
		this.ordinal = ordinal;
	}
	
	public int getOrdinal() {
		return ordinal;
	}

	@Override
	public String toString() {
		return name();
	}
	
	public String getMessage() {
		return Interpolator.instance().interpolate("#{messages['"+name().toLowerCase()+"_msg']", new Object());
	}
	
}
